import request from "@/common/request.js";

/**
 * 获取地区数据
 * 
*/
export function getAreaApi(data) {
  return request.get("/common/area", data);
}

/**
 * 微信授权登录
 * 
*/
export function authLoginApi(data) {
  return request.post("/user/authlogin", data);
}

/**
 * 用户信息填写
 * 
*/
export function updateBasicInfoApi(data) {
  return request.post("/user/updateBasicInfo", data);
}

/**
 * 问题列表
 * 
*/
export function getQuestionListApi(data) {
  return request.get("/answer/question", data);
}

/**
 * 提交答题结果
 * 
*/
export function submitAnswerApi(data) {
  return request.post("/answer/submit", data);
}

/**
 * 查询答题结果
 * 
*/
export function getAnswerResultApi(data) {
  return request.post("/answer/res", data);
}

/**
 * 查询答题成绩
 * 
*/
export function getAchievementApi(data) {
  return request.post("/answer/achievement", data);
}